package cn.tk.spring;

import cn.tk.cache.mr.MrBuf;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * Created by denglw on 2019/5/14.<br/>
 * Desc: robotai系统初始化加载：缓存robot/知识库/流程引擎数据
 */
@Component
@Order(1)
@Slf4j
public class MrLoaderRunner implements CommandLineRunner {

    @Override
    public void run(String... args) {
        log.info("启动机器人初始化加载程序...");
        MrBuf.reloadBuf();
        log.info("成功启动智能机器人服务.");
    }

}
